<div data-ng-init="initAttSearch('dzwbhjc',
    {url:'/sz_jc/MapServer/1',
    infoTemplateTitle:'动植物保护详情',
    infoTemplateContent:'dzwbhjc_temp',
    medname:'zyjc_dzw_jg2018',
    fieldUseZh:false,
    infoWindowWidth:340,
    infoWindowHeiht:240,
    pageSize:7});">

    <div id="dzwbhjc_temp" style="display:none">
        <div class="container">
            <table width="100%" class="table-b">
               <!-- <tr><td colspan="2" style="text-align: right">
                    <a>导出坐标文件</a>
                </td></tr>-->
                <!--<tr> <td width="40%" style="text-align: right;" >市:</td> <td width="60%" style="text-align: left;">~{SHI}</td> </tr>-->
                <!--<tr> <td width="40%" style="text-align: right;" >县:</td> <td width="60%" style="text-align: left;">~{XIAN}</td> </tr>-->
                <tr> <td width="40%" style="text-align: right;" >乡:</td> <td width="60%" style="text-align: left;">~{XIANG}</td> </tr>
                <tr> <td width="40%" style="text-align: right;" >村:</td> <td width="60%" style="text-align: left;">~{CUN}</td> </tr>
                <tr> <td width="40%" style="text-align: right;" >物种名称:</td> <td width="60%" style="text-align: left;">~{DZWMC}</td> </tr>
                <tr> <td width="40%" style="text-align: right;" >保护等级:</td> <td width="60%" style="text-align: left;">~{BHDJ_DESC}</td> </tr>
                <tr> <td width="40%" style="text-align: right;" >数量:</td> <td width="60%" style="text-align: left;">~{SL}</td> </tr>
                <tr> <td width="40%" style="text-align: right;" >监测状态:</td> <td width="60%" style="text-align: left;">~{BHLX_DESC}</td> </tr>

                <tr> <td width="40%" style="text-align: right;" >任务类型:</td> <td width="60%" style="text-align: left;">~{RWLX_DESC}</td> </tr>
                <tr> <td width="40%" style="text-align: right;" >任务来源:</td> <td width="60%" style="text-align: left;">~{RWLY_DESC}</td> </tr>
                <!--<tr> <td width="40%" style="text-align: right;" >任务名称:</td> <td width="60%" style="text-align: left;">~{RWMC}</td> </tr>-->

                <tr> <td width="40%" style="text-align: right;" >备注:</td> <td width="60%" style="text-align: left;">~{BZ}</td> </tr>
                <tr> <td width="40%" style="text-align: right;" >照片:</td> <td width="60%" style="text-align: left;">~{ZP}</td> </tr>
                <tr> <td width="40%" style="text-align: right;" >核实人员:</td> <td width="60%" style="text-align: left;">~{HSRY}</td> </tr>
                <tr> <td width="40%" style="text-align: right;" >核实时间:</td> <td width="60%" style="text-align: left;">~{HSSJ}</td> </tr>
                <tr> <td width="40%" style="text-align: right;" >核实状态:</td> <td width="60%" style="text-align: left;">~{HCZT_DESC}</td> </tr>

                <!--<tr> <td width="40%" style="text-align: right;" >破坏负责人:</td> <td width="60%" style="text-align: left;">~{WF_FDR}</td> </tr>-->
                <!--<tr> <td width="40%" style="text-align: right;" >查处状态:</td> <td width="60%" style="text-align: left;">~{WF_CCZT_DESC}</td> </tr>-->
                <!--<tr> <td width="40%" style="text-align: right;" >案件性质:</td> <td width="60%" style="text-align: left;">~{WF_AJXZ_DESC}</td> </tr>-->
            </table>
        </div>
    </div>

    <div class="search" ng-show="searchOpen">
        <h4 class="title">动植物保护查询</h4>
        <div class="zs-form-tab">
            <table width="100%">
                <tbody>
                    <tr>
                        <td class="right" width="28%">乡</td>
                        <td>
                            <ag-Combobox class="zs-input" style="width:204px;height: 28px;"
                                         fn='rXIANG'
                                         para="{	uDictionary:true,
                                                        dictionary:'p_administrative',
                                                        nfn:'rCUN',
                                                        pDicId:'440307',
                                                        pidField:'pid'}"
                                         ng-model='gisObject.dzwbhjc.attribute["XIANG"]'
                                         text-Value="xiang" />
                        </td>
                    </tr>
                    <tr>
                        <td class="right" width="28%">村</td>
                        <td>
                            <ag-Combobox class="zs-input" style="width:204px;height: 28px;"
                                         fn='rCUN'
                                         para="{	uDictionary:true,
                                                        dictionary:'p_administrative',
                                                        pfn:'rXIANG',
                                                        pidField:'pid'}"
                                         ng-model='gisObject.dzwbhjc.attribute["CUN"]'
                                         text-Value="cun" />
                        </td>
                    </tr>

                    <tr>
                        <td class="right" width="28%">物种名称</td>
                        <td>
                            <input class="zs-input" type="text"
                                   ng-model='gisObject.dzwbhjc.attribute["DZWMC"]'>
                        </td>
                    </tr>
                    <tr>
                        <td class="right" width="28%">保护等级</td>
                        <td>
                            <ag-Combobox class="zs-input" style="width:204px;height: 28px;"
                                         para="{	uDictionary:true,
                                            addSpace:true,
                                            dictionary:'bhdj'}"
                                         ng-model='gisObject.dzwbhjc.attribute["BHDJ"]'
                                         text-Value="BHDJ" />
                        </td>
                    </tr>
                    <tr>
                        <td class="right" width="28%">监测状态</td>
                        <td>
                            <ag-Combobox class="zs-input" style="width:204px;height: 28px;"
                                         para="{	uDictionary:true,
                                            addSpace:true,
                                            dictionary:'bhlx'}"
                                         ng-model='gisObject.dzwbhjc.attribute["BHLX"]'
                                         text-Value="BHLX" />
                        </td>
                    </tr>

                    <tr>
                        <td class="right" width="28%"></td>
                        <td style="text-align:left;">
                            <label><input type="checkbox" ng-model="gisObject.dzwbhjc.extent" ng-true-value="true" ng-false-value="false">视图范围内查询</label>
                        </td>
                    </tr>
                    <tr>
                        <td class="center" colspan="2">
                            <input type="button" name="ok" value="查询" class="zs-btn" 
                                ng-click="attSearch('dzwbhjc') && setSearchOpen(false);">
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="result ng-hide" ng-show="!searchOpen">
        <a class="back" ng-click="clearSearchResult('dzwbhjc');setSearchOpen(true);">返回</a>
        <ul class="list">
            <li class="item" ng-repeat="result in gisObject.dzwbhjc.pageList"
                ng-mousemove="highFeatureSelectGraphic(result.attributes._guid);" 
                ng-mouseleave="featureSelectGraphic(result.attributes._guid);">
                <p><a ng-click="setGraphicExtent(result.attributes._guid);showInfoWindow(result.attributes._guid);">
                    {{result.attributes['XIANG_DESC']}} - {{result.attributes['CUN_DESC']}} - {{result.attributes['DZWMC']}}
                </a></p>
                <p>
                    保护等级:{{result.attributes['BHDJ_DESC']}} - 监测状态:{{result.attributes['BHLX_DESC']}}
                </p>
            </li>
        </ul>
        <ag-Gis-Page fn='dzwbhjc'></ag-Gis-Page>
    </div>
</div>